import 'package:flutter/material.dart';
import 'package:flutter_base/21_getx/counterController.dart';
import 'package:get/get.dart';

class ShopPage extends GetView<CounterController> {
  const ShopPage({super.key});

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text('你好'),
      ),
      body: Center(
        child: Column(
          children: [Obx(() => Text('${controller.count}'))],
        ),
      ),
    );
  }
}
